package com.hippoframework.exception;
import java.beans.Introspector;

/**
 * @author YichuanWang
 * @date 12/26/2019 5:56 PM
 */
public class NoSuchBeanDefinitionException extends BeansException {

    public NoSuchBeanDefinitionException(String msg) {
        super(msg);
    }

    public NoSuchBeanDefinitionException(Class<?> type) {
        super("无法找到对应的BeanDefinition, BeanName: " + Introspector.decapitalize(type.getSimpleName()));
    }
}
